
function hideShowable() {
	var showable_elements = document.getElementsByClassName("showable");
	for (var i = 0; i < showable_elements.length; i ++ ) {
		element = showable_elements.item(i);
		element.style.display = "none";
	}
}

function toggleTheme() {
	if( localStorage.getItem('theme') === 'theme-dark') {
		setTheme('theme-light');
	}
	else {
		setTheme('theme-dark');
	}
}

function setTheme( name ) {
	localStorage.setItem('theme', name);
	document.documentElement.className = name;
}
